//
//  AITextContentCell.m
//  Mia
//
//  Created by Vill on 2024/1/24.
//

#import "AITextContentCell.h"
#import "AIInsetLabel.h"

@interface AITextContentCell ()

@property (nonatomic, strong) AIInsetLabel *txtLabel;
 
@end

@implementation AITextContentCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = UIColor.clearColor;
        [self.contentView addSubview:self.txtLabel];
        [self.txtLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(self.contentView);
        }];
    }
    return self;
}

-(AIInsetLabel *)txtLabel{
    if(!_txtLabel){
        _txtLabel = [AIInsetLabel new];
        _txtLabel.textInsets = UIEdgeInsetsMake(PTW(12), PTW(12), PTW(12), PTW(12));
    }
    return _txtLabel;
}

@end
